package packaging.homework1;

import java.util.Scanner;

public class TestBanking {
    public static void main(String[] args) {
        Account account = new Account(1000);
        System.out.println("账户余额："+account.getBalance());
        Scanner input = new Scanner(System.in);
        System.out.print("请输入存款金额：");
        double balance = input.nextDouble();
        account.deposit(balance);
        System.out.println("账户余额："+account.getBalance());
        System.out.print("请输入取款金额：");
        balance = input.nextDouble();
        account.withdraw(balance);
        System.out.println("账户余额："+account.getBalance());
    }
}
